package cn.tedu.qxhouserent.passport.service;


import cn.tedu.qxhouserent.commons.pojo.vo.PageData;
import cn.tedu.qxhouserent.passport.pojo.param.PermissionAddNewParam;
import cn.tedu.qxhouserent.passport.pojo.param.PermissionUpdateInfoParam;
import cn.tedu.qxhouserent.passport.pojo.vo.PermissionListItemVO;
import cn.tedu.qxhouserent.passport.pojo.vo.PermissionStandardVO;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface PermissionService {


    void addNew(PermissionAddNewParam permissionAddNewParam);

    void deleteById(Long id);

    void updateInfoById(Long id, PermissionUpdateInfoParam permissionUpdateInfoParam);

    PageData<PermissionListItemVO> list(Integer pageNum);

    PageData<PermissionListItemVO> list(Integer pageNum,Integer pageSize);

    PermissionStandardVO getStandardById(Long id);

}
